package com.lun.blog.service;

import com.lun.blog.pojo.Message;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;


import java.util.List;

/**
 * @author fangLJ
 * @creatTime 2021/3/13
 */
public interface MessageService {

    void addMessage(Message message);

    void deleteMessage(Message message);

    void explain(Long id);

    Message findById(Long id);

    Page<Message> pageMessage(Pageable pageable);

    List<Message> findAll();

    Long countMessage();

}
